<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>Node</title>
</head>
<body style="font-family: Helvetica,Arial,sans-serif;">
<b>Simple Texture Shader</b><br><br>

Vertex Shader<br><br>

<code>
void main() { <br>
	gl_TexCoord[0] = gl_MultiTexCoord0;<br>
	gl_Position = ftransform();<br>
}
</code>
<br>
<br>

Fragment Shader<br><br>

<code>
// location of the texture to use (i.e. to use first texture set theTexture to 0)<br>
uniform sampler2D theTexture;<br>
<br>
void main() {<br>
	vec3 lightColour = vec3(texture2D(theTexture, gl_TexCoord[0].st));<br>
	gl_FragColor = vec4(lightColour, 1.0);<br>
}<br>
</code>
<br>
<br>
</body>
</html>
